﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QuanLyShopThoiTrang.QuanLyShopThoiTrang_BUS_WS;


namespace QuanLyShopThoiTrang
{
    public partial class TraCuuNhaCungCap : Form
    {
        QuanLyNhaCungCap qlncc;
        QLSTT_BUSSoapClient ws = new QLSTT_BUSSoapClient();
        public TraCuuNhaCungCap()
        {
            InitializeComponent();
        }

        public void Set(QuanLyNhaCungCap qnc)
        {
            qlncc = qnc;
        }

        private void TraCuuNhaCungCap_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            NhaCungCap ncc = new NhaCungCap();
            ncc.NhaCungCap_Ten = textBox1.Text;
            ncc.NhaCungCap_SoDienThoai = textBox4.Text;
            ncc.NhaCungCap_DiaChi = textBox2.Text;
            ncc.NhaCungCap_Website = textBox5.Text;
            ncc.NhaCungCap_Email = textBox3.Text;

            qlncc.TraCuu(ncc);
            Close();
        }
    }
}
